"""
-*- coding:utf-8 -*-
@Time:2025/7/16 14:59
@Author: viawang
@Email:  939654454@qq.com
@Wechat:bluesky___9999
@File:main.py
"""

import traceback
from like_comment import LikeComment
from loguru import logger


class DouyinBusiness:
    """抖音业务触发入口"""

    def __init__(self):
        super().__init__()

    def main(self, executable_path, profile_id, debugger_port, phone_number, unifiedprompt, xinghuodata):
        like_comment = LikeComment(executable_path, profile_id, debugger_port, phone_number, unifiedprompt, xinghuodata)
        like_comment.likecomment_business()


if __name__ == '__main__':
    unifiedprompt = "请根据这张图扩展联想接下来的视频帧具体的场景，从而对扩展的视频帧内容采用拟人，比喻等修辞手法扩展这个场景写出一条30-50个字左右的神评论，要多一点现代语言艺术和网络词语的表达，只需要输出一行内容，不要人机的话题！！！要很接地气，一定要像个真人在评论！！偶尔带个表情包，不要携带#话题和@作者"
    executable_path_ = "请改成你google浏览器的可执行文件路径，比如D:\Chrome\Google\chrome.exe"
    xinghuo_cookies_ = "请改成你自己星火的cookies"
    xinghuofd_ = "请改成你自己星火的fd"
    xinghuochatId_ = "请改成你自己星火的chatId"
    profile_id_, debugger_port_, phone_number_ = ["抖音昵称可自定义", "端口号可自定义（比如9223）", "请填写你抖音绑定的手机号"]
    xinghuodata = [xinghuo_cookies, xinghuofd, xinghuochatId]
    douyinbusiness = DouyinBusiness()
    douyinbusiness.main(executable_path, profile_id, debugger_port, phone_number, unifiedprompt, xinghuodata)
